<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Cat extends Model
{

    // 可批量赋值字段
    protected $fillable = [
        'name',
        'date_of_birth',
        'breed_id'
    ];

    // 自定义表名
    // protected $table = 'demo_cat';

    public function breed() {
        return $this->belongsTo(Breed::class);
    }
}
